#-*- coding:utf-8 -*-
class ShortInputException:
    def __init__(self):
        print 'ShortInputException'
a=int(input("输入"))
try:
    if a<2:
     raise ShortInputException()  
except EOFError:   
    
    print 1  
    
except KeyboardInterrupt:
    print "2"
else:
    print "3"         
    